﻿using B.T.BasicData.Domain.RBAC;
using B.T.BasicData.ErrorCode;
using B.T.BasicData.Write_Api.DTO;
using static Humanizer.On;

namespace B.T.BasicData.Write_Api.RBAC.IServices
{
    public interface IPermissionsServices
    {
        /// <summary>
        /// 权限添加
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> AddPermissions(AddPermissionsDto dto);

        /// <summary>
        /// 权限显示
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<List<Permissions>>> SreachPermissions(string ? PermissionName);


        /// <summary>
        /// 查找权限所有名称
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<List<SearchPermissionsDto>>> SearchPermissionsinfo();

        /// <summary>
        /// 权限删除
        /// </summary>
        /// <returns></returns>
        Task<ApiResult> DelePermissions(DelePermissionsdto dto);

        /// <summary>
        /// 修改权限信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> UpdatePermissions(UpdatePermissionsDto dto);
    }
}
